<?php
require_once("/home/bluecbhv/Back-End/Jcuhelpers-WebTech/Helpers/Constants.php");

/***********************************************
	This class would save the JSON data as a
	new JSON file on the server.
************************************************/
class NewJSONFileCreator {
	private $newJSONFile = NULL;
	
	/************************************************************/
	
	function __construct($jsonData, $jsonFilePath) {
		$this->newJSONFile = fopen($jsonFilePath, 'w');
		fwrite($this->newJSONFile, JSON_HEADER.$jsonData.JSON_FOOTER);
		fclose($this->newJSONFile);
	}
}
?>